<?php
class TestController extends Controller{
	public function emptyPage(){
		$page = new Page();
		$page->setTitle('Empty page');
		$page->setContent('nothing here');
		$this->setResponse($page);	
	}
	
	public function doTest(){
		$page = new BasePage();
		$page->setTitle('Did test');
		$page->setContent('Some content: <img src="'.Util::url('img/test.png').'" />'.'<br>
		Greeting: '.trans('greeting').'<br>
		Welcome: '.trans('welcome').'<br>
		Welcome: '.trans('welcome', array('name' => 'Voornaam')).'<br>');
		$this->setResponse($page);	
	}
	
	public function doNumber($num, $let){
		$page = new Page();
		$page->setTitle('Did test');
		$page->setContent('Number: '.$num.'   Letter: '.$let);
		$this->setResponse($page);
	}
	
	public function doOther($id, $name){
		$page = new Page();
		$page->setTitle('Other');
		$page->setContent('ID: '.$id.'   Name: '.$name);
		$this->setResponse($page);	
	}
}
?>